package com.omega_r.libs.omegarecyclerview.viewpager.default_transformers;

import ohos.agp.components.Component;

public class StackTransformer extends ABaseTransformer {
    @Override
    protected void onTransform(Component component, float position) {
        component.setTranslationX(position < (float)0 ? 0.0F : (float)(-component.getWidth()) * position);
    }
}
